<?php 
$sql =	"SELECT
			  c.page_id,
			  d.title,
			  d.description,
			  d.meta_key,
			  d.meta_description	
		  FROM
			  pages AS c,
			  page_description AS d
		  WHERE
		  
			  c.page_id = d.page_id
			  AND
			  d.lang_id = '".$_SESSION['lang_id']."'
			  AND
			  c.page_id = '".$sef_url."' 
			  AND c.published
		  ";
$result = query($sql);
$row = mysql_fetch_object($result);

if(!$row) redirect(HTML_BASE.$_SESSION['lang'].'/404');
head(sth($row->title),sth($row->meta_description));



?>

<section id="contentwrap">
		<div id="content">
			
			<div class="left full">
				<h1><?=stripslashes($row->title)?></h1>
				 
				 <?=stripslashes($row->description)?>
			</div>
			
		</div>
		
  
</section>
	
<?php

foot();
?>